210ebf40779d0ad390855a0579546e7ff9a02f76,src/main/java/org/graphity/processor/filter/response/HypermediaFilter.java,HypermediaFilter,getPageBuilder,#Resource#number#number#String#Boolean#,166
Before Change
{
if (resource == null) throw new IllegalArgumentException("Resource cannot be null");
StateBuilder sb = StateBuilder.fromResource(resource);
if (offset != null) sb.replaceProperty(GP.offset, resource.getModel().createTypedLiteral(offset));
if (limit != null) sb.replaceProperty(GP.limit, resource.getModel().createTypedLiteral(limit));
if (orderBy != null) sb.replaceProperty(GP.orderBy, resource.getModel().createTypedLiteral(orderBy));
if (desc != null) sb.replaceProperty(GP.desc, resource.getModel().createTypedLiteral(desc));
After Change
public StateBuilder getPageBuilder(StateBuilder sb, TemplateCall templateCall)
{
if (sb == null) throw new IllegalArgumentException("Resource cannot be null");
if (templateCall == null) throw new IllegalArgumentException("TemplateCall cannot be null");
if (templateCall.hasProperty(GP.offset)) sb.replaceProperty(GP.offset, templateCall.getProperty(GP.offset).getObject());
if (templateCall.hasProperty(GP.limit)) sb.replaceProperty(GP.limit, templateCall.getProperty(GP.limit).getObject());
if (templateCall.hasProperty(GP.orderBy)) sb.replaceProperty(GP.orderBy, templateCall.getProperty(GP.orderBy).getObject());
if (templateCall.hasProperty(GP.desc)) sb.replaceProperty(GP.desc, templateCall.getProperty(GP.desc).getObject());